/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package xml.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 *
 * @author Kyros
 */
public class DBConnection {

    private Properties prop = new Properties();

    public DBConnection() {
        try {
            InputStream is = DBConnection.class.getResourceAsStream("/DBConnection.properties");
            prop.load(is);
            is.close();
        } catch (IOException e) {
        }
    }

    public String getDriverName() {
        return prop.getProperty("driverName");
    }

    public String getURL() {
        return prop.getProperty("url");
    }

    public String getUsername() {
        return prop.getProperty("username");
    }

    public String getPassword() {
        return prop.getProperty("password");
    }
}
